﻿#ifndef BROWSERMAINWINDOW_H
#define BROWSERMAINWINDOW_H

#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui { class BrowserMainWindow; }
class QWebEngineView;
class DockWidget;
class QTabWidget;
QT_END_NAMESPACE
class myDockwidget;
class MyTitleBar;
class BrowserMainWindow : public QMainWindow
{
    Q_OBJECT

protected:
    void slottabCloseRequested(int nIndex);
    void tabBarDoubleClicked(int nIndex);
protected slots:
    void slotAddWeb();
public:
    BrowserMainWindow(QWidget *parent = nullptr);
    ~BrowserMainWindow();
protected:
    void paintEvent(QPaintEvent *event) override;
    void resizeEvent(QResizeEvent *event) override;
private:
    myDockwidget * m_pDockWidget;
    QTabWidget *   m_pTabwidget;
    MyTitleBar*    m_pmenubar;
    QWidget*       m_pMainWidget;
};
#endif // MAINWINDOW_H
